package com.ruoyi.project.business.domain.model;

import lombok.Data;

@Data
public class HardSoftScore {
    private Integer hard = 0;
    private Integer soft = 0;


    public void merge(HardSoftScore toMerge) {
        mergeHard(toMerge.getHard());
        mergeSoft(toMerge.getSoft());
    }

    public static HardSoftScore defaultScore() {
        HardSoftScore tmp = new HardSoftScore();
        tmp.setHard(100);
        tmp.setSoft(100);
        return tmp;
    }
    public void mergeHard(int score) {
        this.hard += score;
    }
    public void mergeSoft(int score) {
        this.soft += score;
    }

    public Integer total() {
        return hard + soft;
    }
}
